/**********************************************************************
*  Copyright (c) 2007 - Victor Jacobs - victor.jacobs@gmail.com
*
*  Permission is hereby granted, free of charge, to any person
*  obtaining a copy of this software and associated documentation
*  files (the "Software"), to deal in the Software without
*  restriction, including without limitation the rights to use,
*  copy, modify, merge, publish, distribute, sublicense, and/or sell
*  copies of the Software, and to permit persons to whom the
*  Software is furnished to do so, subject to the following
*  conditions:
*
*  The above copyright notice and this permission notice shall be
*  included in all copies or substantial portions of the Software.
*
*  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
*  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
*  OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
*  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
*  HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
*  WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
*  FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
*  OTHER DEALINGS IN THE SOFTWARE.
**********************************************************************/

using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;

namespace Vj.Ann
{

    public enum NeuronType
    {
        Normal, Bias
    }

    public class BaseNeuron
    {
        #region Properties
        
        private NeuronType type;

        public NeuronType Type
        {
            get { return type; }
            set { type = value; }
        }
        
        List<BaseConnection> connections;

        public List<BaseConnection> Connections
        {
            get { return connections; }
        }

        //private double activation;

        //public double Activation
        //{
        //    get { return activation; }
        //    set { activation = value; }
        //}
        
        //private double threshold;

        //public double Threshold
        //{
        //    get { return threshold; }
        //    set { threshold = value; }
        //}

        private double input;

        public double Input
        {
            get { return input; }
            set { input = value; }
        }

        private double errorInput;

        public double ErrorInput
        {
            get { return errorInput; }
            set { errorInput = value; }
        }
        
        private double output;

        public double Output
        {
            get { return output; }
            set { output = value; }
        }

        private double errorOutput;

        public double ErrorOutput
        {
            get { return errorOutput; }
            set { errorOutput = value; }
        }


        private double expectedValue;

        public double ExpectedValue
        {
            get { return expectedValue; }
            set { expectedValue = value; }
        }

        // abstract this out 
        private Point center;

        public Point Center
        {
            get { return center; }
            set { center = value; }
        }
	     

        #endregion

        public BaseNeuron(NeuronType type)
        {
            this.type = type;
            connections = new List<BaseConnection>();
        }
          		



        
    }
}
